/**
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package cart.hibernate.coverImage;

/**
 *
 * @author BibooChung
 */
import cart.hibernate.movieInformation.*;

public class CoverImage {
    private long coverImageId;
    private String imageName;

    private MovieInformation movie;

    public CoverImage(){
    }

    public CoverImage(String imageName){
        this.imageName = imageName;
    }

    public CoverImage(String imageName, MovieInformation movie){
    	this.imageName = imageName;
    	this.movie = movie;
    }

    public CoverImage(CoverImage image){
        this.imageName = image.imageName;
        this.movie = image.movie;
    }

    public long getCoverImageId(){
        return coverImageId;
    }
    /**
     * Getter of imageName
     * @return this.imageName
     */
    public String getImageName(){
        return imageName;
    }

    public MovieInformation getMovie(){
    	return movie;
    }
    
    /**
     * Setter of coverImageId
     * @param coverImageId set coverImageId to coverImageId's value
     */
    public void setCoverImageId(long coverImageId) {
        this.coverImageId = coverImageId;
    }
    /**
     * Setter of imageName
     * @param imageName set imageName to imageName's value
     */
    public void setImageName(String imageName){
        this.imageName = imageName;
    }

    public void setMovie(MovieInformation movie){
        this.movie = movie;
    }

    public void setCoverImage(String imageName, MovieInformation movie){
        this.imageName = imageName;
        this.movie = movie;
    }
}
